how to identify hcf and lcm in word problems class 10